

<div id="section-content">
    <h2>Admin > Levels</h2>
    <table class="general-table ui-widget ui-widget-content table" cellspacing="0">
    <thead>
        <tr class="ui-widget-header">
            <th>Level</th>
            <th>Name</th>
            <th><a href="<? echo $this->baseUrl() ?>/level/add-level"><div class="ui-state-default ui-corner-all" title="New level" style="float:left; margin: 3px 3px 0 0;"><span class="ui-icon ui-icon-plus"></span></div></a></th>
        </tr>
    </thead>
    <tbody>
        
        
        <?php 
        
        $class = "odd";
        foreach ($this->entries as $entry): 
            $class = ($class=='even') ? 'odd' : 'even';
        ?>
            <tr class="<?php echo $class ?>">
                <td><?php echo $this->escape($entry->level) ?></td>
                <td><a href="<? echo $this->baseUrl() ?>/level/edit-level/?level_id=<?php echo $this->escape($entry->id) ?>"><?php echo $this->escape($entry->name) ?></a></td>
                <td>
                    <a href="#" onclick="javascript:actionConfirm('<? echo $this->baseUrl() ?>/level/delete/?level_id=<?php echo $this->escape($entry->id) ?>');"><div class="ui-state-default ui-corner-all" title="Eliminar" style="float:left; margin: 3px 3px 0 0;"><span class="ui-icon ui-icon-trash"></span></div></a>
                    <a href="<? echo $this->baseUrl() ?>/level/edit-level/?level_id=<?php echo $this->escape($entry->id) ?>"><div class="ui-state-default ui-corner-all" title="Edit" style="float:left; margin: 3px 3px 0 0;"><span class="ui-icon ui-icon-pencil"></span></div></a>
                </td>
            </tr>
        <?php  endforeach ?>    
        
    </tbody>
    </table>
</div>